package com.aau.edu;

import com.aau.edu.service.MyService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @Classname TestApplication
 * @Date 2024/12/18 15:45
 * @Created by 鲍宪立
 */
@SpringBootApplication
public class TestApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(TestApplication.class, args);
        MyService bean = context.getBean("myService", MyService.class);
        System.out.println(bean);
        System.out.println(context);
    }
}
